package com.wanlink.mall.app.ui.fragment;

import android.view.View;

import com.wanlink.mall.R;
import com.wanlink.mall.app.presenter.HomePresenter;
import com.wanlink.mall.app.ui.view.HomeView;
import com.wanlink.mall.base.BaseFragment;
import com.wanlink.mall.base.BasePresenter;

/**
 * 首页
 */

public class HomeFragment extends BaseFragment<HomeView, HomePresenter> implements HomeView{


    public static HomeFragment newInstance() {
        return new HomeFragment();
    }

    @Override
    protected HomePresenter createPresenter() {
        return new HomePresenter();
    }

    @Override
    protected int provideContentViewId() {
        return R.layout.fragment_home;
    }

    @Override
    public void initView(View rootView) {
        super.initView(rootView);
    }

    @Override
    public void initData() {
        super.initData();
        mPresenter.getBanner();

    }
}
